// src/main.js
import {createApp} from 'vue'
import App from './App.vue'
import router from './router'

// ✅ 引入 Element Plus
import ElementPlus, {ElMessage} from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
app.use(router)
app.use(ElementPlus) // ✅ 注册 Element Plus
// 把 message 注册到全局属性
app.config.globalProperties.$message = ElMessage
app.mount('#app')
